package per.com.common;

import lombok.Getter;

/**
 * @author zxy
 */
@Getter
public enum ResponseCode {

    SUCCESS(0,"成功"),
    ERROR(1,"失败"),
    NEED_LOGIN(10,"需要登录"),
    ILLEGAL_ARGUMENT(2,"参数错误");

    private final int code;

    private final String desc;

    ResponseCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
